﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace ModelLayer
{
    [KnownType(typeof(DateTime))]
    [DataContract(IsReference=false)]
    public class ShowType
    {
        private string type;
        private string title;
        private string description;
        private DateTime release;

        //Constructor
        public ShowType(string type, string title, string description, DateTime release)
        {
            this.type = type;
            this.title = title;
            this.description = description;
            this.release = release;
        }

        #region Getters and Setters
        [DataMember]
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        [DataMember]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        [DataMember]
        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        [DataMember]
        public DateTime Release
        {
            get { return release; }
            set { release = value; }
        }
        #endregion
    }
}
